import React, {Component} from 'react';

class Child1 extends Component {
  render() {
    //props this.props.hello
    let {msg} = this.props;
    return (
      <div>
        {msg}
        <button onClick={()=>{
          this.props.msg = '你是大笨蛋';
        }}>改props</button>
      </div>
    );
  }
}

export default Child1;
